<template>
  <div id="operation-container">
    <button @click="restart()">重新开始</button>
  </div>
</template>

<script>
export default {
  name: 'Operation',
  methods: {
    /**
     * 重新开始
     */
    restart() {
      this.$bus.$emit('restart')
    }
  }
}
</script>

<style lang="less" scoped>
#operation-container {
  margin: 20px 0;

  button {
    width: 100px;
    height: 30px;
  }
}
</style>